﻿using AutoMapper;
using B.W.passport.Application.AdminService;
using B.W.passport.Application.breedService;
using B.W.passport.Application.DTO;
using B.W.passport.Domain;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.W.passport.Application
{
    /// <summary>
    /// AutoMapper
    /// </summary>
    public class Mapping:Profile
    {
        public Mapping()
        {
            CreateMap<ProductDTO,Product>().ReverseMap();
            CreateMap<AddProductService,Product>().ReverseMap();
            CreateMap<DelProductService, Product>().ReverseMap();
            CreateMap<BreedDTO, Breed>().ReverseMap();
        }
    }
}
